package top.wardyan.wmes.rfid.kqa.dto;

/**
 * @author lcf
 * @CreateTime 2022/1/26 11:21
 * @Description
 */
public class BasicCmd28 {
    /** 键盘锁定 **/
    private int keyLock;
    /** 触发模式:128单键模式，129多键模式 **/
    private int triggerMode;
    /** 灯序号1 **/
    private int lampNo1;
    /** 模式1 **/
    private int lampTriggerMode1;
    /** 控制值1 **/
    private int lampControlValue1;
    /** 灯序号2 **/
    private int lampNo2;
    /** 模式2 **/
    private int lampTriggerMode2;
    /** 控制值2 **/
    private int lampControlValue2;
    /** 灯序号3 **/
    private int lampNo3;
    /** 模式3 **/
    private int lampTriggerMode3;
    /** 控制值3 **/
    private int lampControlValue3;
    /** 继电器1 **/
    private int relayNo1;
    /** 模式1 **/
    private int relayTriggerMode1;
    /** 控制值1 **/
    private int relayControlValue1;
    /** 继电器2 **/
    private int relayNo2;
    /** 模式2 **/
    private int relayTriggerMode2;
    /** 控制值2 **/
    private int relayControlValue2;
    /** 继电器3 **/
    private int relayNo3;
    /** 模式3 **/
    private int relayTriggerMode3;
    /** 控制值3 **/
    private int relayControlValue3;
    /** 发声次数 **/
    private int voiceTimes;
    /** 发声间隔 **/
    private int voiceInterval;

    public BasicCmd28(int keyLock, int triggerMode, int voiceTimes, int voiceInterval) {
        this.keyLock = keyLock;
        this.triggerMode = triggerMode;
        this.lampNo1 = 0;
        this.lampTriggerMode1 = 0;
        this.lampControlValue1 = 0;
        this.lampNo2 = 0;
        this.lampTriggerMode2 = 0;
        this.lampControlValue2 = 0;
        this.lampNo3 = 0;
        this.lampTriggerMode3 = 0;
        this.lampControlValue3 = 0;
        this.relayNo1 = 0;
        this.relayTriggerMode1 = 0;
        this.relayControlValue1 = 0;
        this.relayNo2 = 0;
        this.relayTriggerMode2 = 0;
        this.relayControlValue2 = 0;
        this.relayNo3 = 0;
        this.relayTriggerMode3 = 0;
        this.relayControlValue3 = 0;
        this.voiceTimes = voiceTimes;
        this.voiceInterval = voiceInterval;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(keyLock).append("|").append(triggerMode).append("|")
                .append(lampNo1).append("|").append(lampTriggerMode1).append("|").append(lampControlValue1).append("|")
                .append(lampNo2).append("|").append(lampTriggerMode2).append("|").append(lampControlValue2).append("|")
                .append(lampNo3).append("|").append(lampTriggerMode3).append("|").append(lampControlValue3).append("|")
                .append(relayNo1).append("|").append(relayTriggerMode1).append("|").append(relayControlValue1).append("|")
                .append(relayNo2).append("|").append(relayTriggerMode2).append("|").append(relayControlValue2).append("|")
                .append(relayNo3).append("|").append(relayTriggerMode3).append("|").append(relayControlValue3).append("|")
                .append(voiceTimes).append("|").append(voiceInterval);
        return sb.toString();
    }

	public int getKeyLock() {
		return keyLock;
	}

	public BasicCmd28 setKeyLock(int keyLock) {
		this.keyLock = keyLock;
		return this;
	}

	public int getTriggerMode() {
		return triggerMode;
	}

	public BasicCmd28 setTriggerMode(int triggerMode) {
		this.triggerMode = triggerMode;
		return this;
	}

	public int getLampNo1() {
		return lampNo1;
	}

	public BasicCmd28 setLampNo1(int lampNo1) {
		this.lampNo1 = lampNo1;
		return this;
	}

	public int getLampTriggerMode1() {
		return lampTriggerMode1;
	}

	public BasicCmd28 setLampTriggerMode1(int lampTriggerMode1) {
		this.lampTriggerMode1 = lampTriggerMode1;
		return this;
	}

	public int getLampControlValue1() {
		return lampControlValue1;
	}

	public BasicCmd28 setLampControlValue1(int lampControlValue1) {
		this.lampControlValue1 = lampControlValue1;
		return this;
	}

	public int getLampNo2() {
		return lampNo2;
	}

	public BasicCmd28 setLampNo2(int lampNo2) {
		this.lampNo2 = lampNo2;
		return this;
	}

	public int getLampTriggerMode2() {
		return lampTriggerMode2;
	}

	public BasicCmd28 setLampTriggerMode2(int lampTriggerMode2) {
		this.lampTriggerMode2 = lampTriggerMode2;
		return this;
	}

	public int getLampControlValue2() {
		return lampControlValue2;
	}

	public BasicCmd28 setLampControlValue2(int lampControlValue2) {
		this.lampControlValue2 = lampControlValue2;
		return this;
	}

	public int getLampNo3() {
		return lampNo3;
	}

	public BasicCmd28 setLampNo3(int lampNo3) {
		this.lampNo3 = lampNo3;
		return this;
	}

	public int getLampTriggerMode3() {
		return lampTriggerMode3;
	}

	public BasicCmd28 setLampTriggerMode3(int lampTriggerMode3) {
		this.lampTriggerMode3 = lampTriggerMode3;
		return this;
	}

	public int getLampControlValue3() {
		return lampControlValue3;
	}

	public BasicCmd28 setLampControlValue3(int lampControlValue3) {
		this.lampControlValue3 = lampControlValue3;
		return this;
	}

	public int getRelayNo1() {
		return relayNo1;
	}

	public BasicCmd28 setRelayNo1(int relayNo1) {
		this.relayNo1 = relayNo1;
		return this;
	}

	public int getRelayTriggerMode1() {
		return relayTriggerMode1;
	}

	public BasicCmd28 setRelayTriggerMode1(int relayTriggerMode1) {
		this.relayTriggerMode1 = relayTriggerMode1;
		return this;
	}

	public int getRelayControlValue1() {
		return relayControlValue1;
	}

	public BasicCmd28 setRelayControlValue1(int relayControlValue1) {
		this.relayControlValue1 = relayControlValue1;
		return this;
	}

	public int getRelayNo2() {
		return relayNo2;
	}

	public BasicCmd28 setRelayNo2(int relayNo2) {
		this.relayNo2 = relayNo2;
		return this;
	}

	public int getRelayTriggerMode2() {
		return relayTriggerMode2;
	}

	public BasicCmd28 setRelayTriggerMode2(int relayTriggerMode2) {
		this.relayTriggerMode2 = relayTriggerMode2;
		return this;
	}

	public int getRelayControlValue2() {
		return relayControlValue2;
	}

	public BasicCmd28 setRelayControlValue2(int relayControlValue2) {
		this.relayControlValue2 = relayControlValue2;
		return this;
	}

	public int getRelayNo3() {
		return relayNo3;
	}

	public BasicCmd28 setRelayNo3(int relayNo3) {
		this.relayNo3 = relayNo3;
		return this;
	}

	public int getRelayTriggerMode3() {
		return relayTriggerMode3;
	}

	public BasicCmd28 setRelayTriggerMode3(int relayTriggerMode3) {
		this.relayTriggerMode3 = relayTriggerMode3;
		return this;
	}

	public int getRelayControlValue3() {
		return relayControlValue3;
	}

	public BasicCmd28 setRelayControlValue3(int relayControlValue3) {
		this.relayControlValue3 = relayControlValue3;
		return this;
	}

	public int getVoiceTimes() {
		return voiceTimes;
	}

	public BasicCmd28 setVoiceTimes(int voiceTimes) {
		this.voiceTimes = voiceTimes;
		return this;
	}

	public int getVoiceInterval() {
		return voiceInterval;
	}

	public BasicCmd28 setVoiceInterval(int voiceInterval) {
		this.voiceInterval = voiceInterval;
		return this;
	}
}
